﻿
Imports DAO
Imports DTO
Public Class BoKichDienBUS
    Private aqDAO As BoKichDienDAO

    Public Sub New()
        aqDAO = New BoKichDienDAO()
    End Sub

    Public Function InsertBoKichDien(ByVal aq As BoKichDienDTO, ByVal flagIsUp As Integer)
        Return aqDAO.InsertBoKichDien(aq, flagIsUp)
    End Function

    Public Function LoadComboListbox()
        Return aqDAO.LoadComboListbox()
    End Function

    Public Function GetData()
        Return aqDAO.GetData()
    End Function

    Public Function TimKiem(ByVal laq As BoKichDienDTO)
        Return aqDAO.TimKiem(laq)
    End Function

    Public Function DeleteProduct(ByVal id As Integer)
        Return aqDAO.DeleteAcQuy(id)
    End Function

    Public Function SelectById(ByVal id As Integer)
        Return aqDAO.SelectByID(id)
    End Function

    Public Function SelectNameLoai(ByVal id As Integer)
        Return aqDAO.SelectNameLoai(id)
    End Function
End Class
